import { createStore } from 'vuex'
import user from './user'
import VuexPersistence from 'vuex-persist'
var vueLocal = new VuexPersistence({
  // storage  
  storage:window.localStorage
})

// 创建一个新的 store 实例
const store = createStore({
  modules:{user},
  plugins:[
    vueLocal.plugin
  ]
})

export default store;
